﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MemberUser/MemberMaster.Master"
    AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="ZLCMS.Web.MemberUser.Default" %>

<%@ Import Namespace="ZLCMS.Business.Util" %>
<%@ MasterType VirtualPath="~/MemberUser/MemberMaster.Master" %>
<%@ Register Src="UC/MemberCategory.ascx" TagName="MemberCategory" TagPrefix="uc1" %>
<%@ Register Src="UC/Ad_Right.ascx" TagName="Ad_Right" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
   <%-- <script src="/MemberUser/js/hover.js"></script>
    <script src="/MemberUser/js/bx.js"></script>--%>
    <script type="text/javascript">
$(document).ready(function(){
         $('#example1').bxCarousel({
                 display_num: 5,
                 move: 1,
                 prev_image: 'images/shop_icon_left.jpg',
                 next_image: 'images/shop_icon_right.jpg',
                 margin: 30,
         });
});
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <!--wrapper start-->
    <div id="wrapper">
        <!--left start-->
        <div class="shop_left">
            <uc1:MemberCategory ID="MemberCategory1" runat="server" />
        </div>
        <!--left end-->
        <!--centent start-->
        <div class="shop_centent">
            <div class="my_xinxi">
                <ul>
                    <li>
                    
                        <div class="name">
                            <img src='<%=string.IsNullOrEmpty( FileKit.FirstFilePath(_memberDb.PhotoUrl))?"/memberuser/images/user.jpg":FileKit.FirstFilePath(_memberDb.PhotoUrl) %>' style="width:100px;height:100px;" /><p class="position">
                                <a href="/MemberUser/ChgUserPhoto.aspx">编辑</a></p>
                        </div>
                        <div class="name_text">
                            <h3 id="h3_membername">
                                <%= _memberDb.MemberName %></h3>
                            <p>
                                <a href="/MemberUser/ChgPasswd.aspx">修改密码</a><a href="/MemberUser/MyAddress.aspx">我的收货地址</a></p>
                        </div>
                    </li>
                    <li class="text">去逛一逛吧<br />
                        包裹在路上的感觉非常好哦。 </li>
                    <div class="clear">
                    </div>
                </ul>
            </div>
            <div class="my_order">
                <p>
                    <em>我的订单</em>
                    &nbsp;&nbsp;<a href="/MemberUser/MyOrder.aspx?type=unpaid">待付款</a><span>&nbsp;<%=  waitForPay%></span>
                    &nbsp;&nbsp;<a href="/MemberUser/MyOrder.aspx?type=unconfirmed">待确认收货</a><span>&nbsp;<%=  waitForReceive%></span>
                  <%--  &nbsp;&nbsp;待评价<span>&nbsp;0</span>--%>&nbsp;&nbsp;
                    <label>  <a  href="/MemberUser/MyOrder.aspx">查看全部订单</a></label></p>
                <ul>
                    <asp:Repeater ID="rpt_order" runat="server" OnItemDataBound="rptOrder_ItemDataBound">
                        <ItemTemplate>
                            <li>
                                <ul>
                                    <li class="shop_pic">
                                        <asp:Repeater ID="rpt_product" runat="server">
                                            <ItemTemplate>
                                                <a href='/product/ProductDetail.aspx?no=<%# Eval("ProductNo") %>'>
                                                    <img src='<%# FileKit.FirstImgPathThumb(Eval("ThumbnailImage") as string) %>' width="55"
                                                        height="55" /></a>
                                            </ItemTemplate>
                                        </asp:Repeater>
                                    </li>
                                    <li>
                                        <%# Eval("ReceiverName") %></li>
                                    <li>￥<%# Eval("TotalPrice") %><br />
                                        <%# GetPaymentName(Eval("PaymentType") == null ? "" : Eval("PaymentType").ToString())%></li>
                                    <li>
                                        <%# string.Format("{0:d}", Eval("OrderTime"))%><br />
                                        <%#string.Format("{0:t}", Eval("OrderTime"))%></li>
                                    <li>
                                        <%# Eval("IsFinished")=="1"?"已结束":"未结束"%></li>
                                    <li><a href="/MemberUser/viewOrder.aspx?orderno=<%#Eval("OrderNo") %>">查看</a></li>
                                    <div class="clear">
                                    </div>
                                </ul>
                            </li>
                        </ItemTemplate>
                    </asp:Repeater>
                </ul>
                <% if (rpt_order.Items.Count==0)
                   { %>
                <div style="border: 1px dashed #ccc; text-align: center; padding: 30px; color: #ccc;">最近3个月无订单数据</div>
                <%} %>
            </div>
            <div class="shop">
                <div class="title">
                    <em>我关注的商品</em><a href="#">查看更多</a></div>
                <ul id="example1">
                    <li><a href="#">
                        <img src="images/shop_pic.jpg" width="99" height="100" /></a><p>
                            ￥92</p>
                    </li>
                    <li><a href="#">
                        <img src="images/shop_pic.jpg" width="99" height="100" /></a><p>
                            ￥192</p>
                    </li>
                    <li><a href="#">
                        <img src="images/shop_pic.jpg" width="99" height="100" /></a><p>
                            ￥492</p>
                    </li>
                    <li><a href="#">
                        <img src="images/shop_pic.jpg" width="99" height="100" /></a><p>
                            ￥592</p>
                    </li>
                    <li><a href="#">
                        <img src="images/shop_pic.jpg" width="99" height="100" /></a><p>
                            ￥692</p>
                    </li>
                    <li><a href="#">
                        <img src="images/shop_pic.jpg" width="99" height="100" /></a><p>
                            ￥792</p>
                    </li>
                    <li><a href="#">
                        <img src="images/shop_pic.jpg" width="99" height="100" /></a><p>
                            ￥892</p>
                    </li>
                    <li><a href="#">
                        <img src="images/shop_pic.jpg" width="99" height="100" /></a><p>
                            ￥992</p>
                    </li>
                    <li><a href="#">
                        <img src="images/shop_pic.jpg" width="99" height="100" /></a><p>
                            ￥1092</p>
                    </li>
                </ul>
            </div>
        </div>
        <!--centent end-->
        <!--right start-->
        <div class="shop_right">
            <uc2:Ad_Right ID="Ad_Right1" runat="server" />
        </div>
        <!--right end-->
        <div class="clear">
        </div>
    </div>
    <!--wrapper end-->
</asp:Content>
